//
//  TopicDetailView.h
//  yilutongxing
//
//  Created by ios-23 on 17/4/8.
//  Copyright © 2017年 YZE. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "YYText.h"
#import "PhotosView.h"

@class TopicDetailView;
@protocol TopicDetailViewDelegate <NSObject>

-(void)deleteTopicAction;

@end

typedef void(^getHeightBlock)(CGFloat height);
@interface TopicDetailView : UIView
@property (weak, nonatomic) IBOutlet UILabel *titleLable;
@property (weak, nonatomic) IBOutlet UIImageView *headImageView;
@property (weak, nonatomic) IBOutlet UILabel *creatATLable;
@property (weak, nonatomic) IBOutlet UILabel *creatDateLable;
@property (weak, nonatomic) IBOutlet UIView *shadowView;
@property(nonatomic,strong) BaseModel *data;
@property (weak, nonatomic) IBOutlet UIButton *deleteBtn;
@property (strong, nonatomic) YYTextView *textTV;
@property (nonatomic, strong)PhotosView *photosView;

-(void)setTopicDetailViewFrame:(getHeightBlock)height;
-(void)showDataWithDictionry:(NSDictionary*)data;


@property (nonatomic, weak) id<TopicDetailViewDelegate>delegate;
@end
